import com.github.pagehelper.PageHelper;
import com.qf.dao.Teacher2Dao;
import com.qf.dao.UserDao;
import com.qf.util.MyBatisUtils;
import org.junit.Test;

/*
 *@Description:
 *@author:刘哥
 *@Date:20:30 2022/7/7
 */
public class TDemo {
    @Test
    public void test0(){
        try {
            Teacher2Dao teacher2Dao = MyBatisUtils.getMapper(Teacher2Dao.class);
            PageHelper.startPage(1,1);
            System.out.println( teacher2Dao.select(1));
            MyBatisUtils.commit();
        } catch (Exception e) {
            e.printStackTrace();
            MyBatisUtils.rollback();
        }
    }
}
